package com.sj.tensquare.friend.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sj.common.utils.PageUtils;
import com.sj.common.utils.Query;

import com.sj.tensquare.friend.dao.NofriendDao;
import com.sj.tensquare.friend.entity.NofriendEntity;
import com.sj.tensquare.friend.service.NofriendService;


@Service("nofriendService")
public class NofriendServiceImpl extends ServiceImpl<NofriendDao, NofriendEntity> implements NofriendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<NofriendEntity> page = this.page(
                new Query<NofriendEntity>().getPage(params),
                new QueryWrapper<NofriendEntity>()
        );

        return new PageUtils(page);
    }

}